{include file="./headStart.tpl"}
<script type="text/javascript">
function userReportfilter()
{
	 var datastring = "filterUserId= "+ $("#filterUserId").val() + "&monthMonth=" + $("select[name='monthMonth']").val() +
	 "&monthYear="+ $("select[name='monthYear']").val();
	 $.ajax({
    url:  "./userTargetAj.php",
    cache: false,
    data: datastring,
    success: function(data){
      $("#userType").html(data);
    }
  });
}
</script>
{include file="./headEnd.tpl"}
<form name="userTargetFrm" method="POST" action="{$smarty.server.PHP_SELF}">
<table align="center" border="0" cellpadding="1" cellspacing="1" >
	<tr>
  <td align="center" colspan="10" class="table1" colspan="2">User Target Report</td>
</tr>
<tr>
	<td align="right" class="table2" >User :</td>
	<td class="table2">
    <select name="filterUserId" id="filterUserId">
      <option value="0">All</option>
        {html_options values=$userArr.userId output=$userArr.userName}
    </select>
  </td>
  <td align="right" class="table2" >Target For : </td>
  <td NOWRAP class="table2">
    {html_select_date prefix="month" time="$month" start_year="-3" end_year="+1" month_format="%b" field_order="MY" 
     all_extra='onchange="javascript:dateComboChange();"'
     day_value_format="%02d" class="dateFilter" month_extra="id='monthFilter'" year_extra="id='yearFilter'"}
  </td>
  <td align="center" colspan="2" class="table2"><input type="button" name="filterBtn" value="Go..." class="button" onclick="userReportfilter()" /></td>
</tr>
</table>
<div id="userType">
</form>
{include file="footer.tpl"}